#!/bin/sh
if [ -z "$CONFIG_URL" ]
then
    echo 'url not set,skip download config'
else
    echo 'download url is '$CONFIG_URL
    set -ex && export config=$(wget -qO - $CONFIG_URL)
    echo 'finish download'
fi
echo 'start application'
/opt/store/store